﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class DictionaryExtension {
//尝试根据Key得到value
	public static Tvalue TryGet<Tkey,Tvalue>(this Dictionary<Tkey,Tvalue> dict,Tkey key)
	{
		Tvalue value;
		dict.TryGetValue(key,out value);
		return value;
	}
}
